﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CompanyManager.aspx.cs"
    Inherits="LotteryVote.CompanyManager" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <fieldset>
        <legend>Company Info</legend>
        <div style="float: left">
            <table>
                <tr>
                    <td>
                        CompanyID:
                    </td>
                    <td>
                        <asp:TextBox ID="txt_Id" runat="server"></asp:TextBox>删除/修改时才填写
                    </td>
                </tr>
                <tr>
                    <td>
                        CompanyName:
                    </td>
                    <td>
                        <asp:TextBox ID="txt_Name" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Abbreviation:
                    </td>
                    <td>
                        <asp:TextBox ID="txt_Abbreviation" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Type:
                    </td>
                    <td>
                        <asp:DropDownList ID="ddl_companyType" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        Region:
                    </td>
                    <td>
                        <asp:DropDownList ID="ddl_region" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        OpenTime:
                    </td>
                    <td>
                        <asp:TextBox ID="txt_opentime" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        CloseTime:
                    </td>
                    <td>
                        <asp:TextBox ID="txt_closeTime" runat="server"></asp:TextBox>
                    </td>
                </tr>
            </table>
            <asp:Button ID="btn_AddCompany" runat="server" Text="AddCompany" OnClick="btn_AddCompany_Click" />
            <asp:Button ID="btn_DelById" runat="server" Text="DelById" OnClick="btn_DelById_Click" />
            <asp:Button ID="btn_DelByName" runat="server" Text="DelByName" OnClick="btn_DelByName_Click" />
            <asp:Button ID="btn_Update" runat="server" Text="Update" OnClick="btn_Update_Click" />
            <asp:Button ID="btn_GetAllCompany" runat="server" Text="GetAllCompany" OnClick="btn_GetAllCompany_Click" />
        </div>
        <div style="color: Red">
            <asp:Literal ID="ltl_message" runat="server"></asp:Literal>
        </div>
        <asp:GridView ID="gv_companys" runat="server" AutoGenerateColumns="true">
        </asp:GridView>
    </fieldset>
    <fieldset>
        <legend>AddCompanyCycle </legend>Company:<asp:DropDownList ID="ddl_company" runat="server">
        </asp:DropDownList>
        DayOfWeek:<asp:DropDownList ID="ddl_dayOfWeek" runat="server">
        </asp:DropDownList>
        <asp:Button ID="btn_addCycle" runat="server" Text="Add" OnClick="btn_addCycle_Click" />
    </fieldset>
    <fieldset>
        <legend>Update Today Lottery Company</legend>
        <asp:Button ID="btn_updateToday" runat="server" Text="Update" 
            onclick="btn_updateToday_Click" />
    </fieldset>
    </form>
</body>
</html>
